package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.NyssaMapper;
import com.ruoyi.system.domain.Nyssa;
import com.ruoyi.system.service.INyssaService;

/**
 * 种植果树Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
@Service
public class NyssaServiceImpl implements INyssaService 
{
    @Autowired
    private NyssaMapper nyssaMapper;

    /**
     * 查询种植果树
     * 
     * @param nyssaId 种植果树主键
     * @return 种植果树
     */
    @Override
    public Nyssa selectNyssaByNyssaId(Long nyssaId)
    {
        return nyssaMapper.selectNyssaByNyssaId(nyssaId);
    }

    /**
     * 查询种植果树列表
     * 
     * @param nyssa 种植果树
     * @return 种植果树
     */
    @Override
    public List<Nyssa> selectNyssaList(Nyssa nyssa)
    {
        return nyssaMapper.selectNyssaList(nyssa);
    }

    /**
     * 新增种植果树
     * 
     * @param nyssa 种植果树
     * @return 结果
     */
    @Override
    public int insertNyssa(Nyssa nyssa)
    {
        return nyssaMapper.insertNyssa(nyssa);
    }

    /**
     * 修改种植果树
     * 
     * @param nyssa 种植果树
     * @return 结果
     */
    @Override
    public int updateNyssa(Nyssa nyssa)
    {
        return nyssaMapper.updateNyssa(nyssa);
    }

    /**
     * 批量删除种植果树
     * 
     * @param nyssaIds 需要删除的种植果树主键
     * @return 结果
     */
    @Override
    public int deleteNyssaByNyssaIds(Long[] nyssaIds)
    {
        return nyssaMapper.deleteNyssaByNyssaIds(nyssaIds);
    }

    /**
     * 删除种植果树信息
     * 
     * @param nyssaId 种植果树主键
     * @return 结果
     */
    @Override
    public int deleteNyssaByNyssaId(Long nyssaId)
    {
        return nyssaMapper.deleteNyssaByNyssaId(nyssaId);
    }
}
